package com.java.netty.common.pptp;



import java.io.Serializable;

public class EnvQuest implements Serializable {
    private static final long serialVersionUID = -1L;
    private String udid;
    private String c2sId;
    private String clientIp;
    private Env env;
    private Ext ext;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUdid() {
        return udid;
    }

    public void setUdid(String udid) {
        this.udid = udid;
    }

    public String getC2sId() {
        return c2sId;
    }

    public void setC2sId(String c2sId) {
        this.c2sId = c2sId;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public Env getEnv() {
        return env;
    }

    public void setEnv(Env env) {
        this.env = env;
    }

    public Ext getExt() {
        return ext;
    }

    public void setExt(Ext ext) {
        this.ext = ext;
    }

    /**
     * 客户端标识信息
     */
    public static class Env implements Serializable {
        private static final long serialVersionUID = -1L;
        private String type;
        private String code;
        private String sn;

        public static long getSerialVersionUID() {
            return serialVersionUID;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }
    }


    public static class Ext implements Serializable {
        private static final long serialVersionUID = -1L;
        private String ver;    //系统版本号
        private Integer os;    //系统名称
        private String mod;   //mod
        private String chp;   //chp
        private String tcVer; //version
        private String code;
        private String emcId; //emcId
        private String activeId; //activeId
        private String openId; //用户Id
        private String txId; //txId
        private String brand; //品牌
        private String pushVer; //push service版本号
        private ChannelConnInfo[] channelConnInfos;

        public static long getSerialVersionUID() {
            return serialVersionUID;
        }

        public String getVer() {
            return ver;
        }

        public void setVer(String ver) {
            this.ver = ver;
        }

        public Integer getOs() {
            return os;
        }

        public void setOs(Integer os) {
            this.os = os;
        }

        public String getMod() {
            return mod;
        }

        public void setMod(String mod) {
            this.mod = mod;
        }

        public String getChp() {
            return chp;
        }

        public void setChp(String chp) {
            this.chp = chp;
        }

        public String getTcVer() {
            return tcVer;
        }

        public void setTcVer(String tcVer) {
            this.tcVer = tcVer;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getEmcId() {
            return emcId;
        }

        public void setEmcId(String emcId) {
            this.emcId = emcId;
        }

        public String getActiveId() {
            return activeId;
        }

        public void setActiveId(String activeId) {
            this.activeId = activeId;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getTxId() {
            return txId;
        }

        public void setTxId(String txId) {
            this.txId = txId;
        }

        public String getBrand() {
            return brand;
        }

        public void setBrand(String brand) {
            this.brand = brand;
        }

        public String getPushVer() {
            return pushVer;
        }

        public void setPushVer(String pushVer) {
            this.pushVer = pushVer;
        }

        public ChannelConnInfo[] getChannelConnInfos() {
            return channelConnInfos;
        }

        public void setChannelConnInfos(ChannelConnInfo[] channelConnInfos) {
            this.channelConnInfos = channelConnInfos;
        }
    }


    public static class ChannelConnInfo implements Serializable {
        private static final long serialVersionUID = -1L;
        private int channelType; //1:个推通道
        private int connected; //1:连接 0:连接失败
        private String thirdPartyCid;

        public static long getSerialVersionUID() {
            return serialVersionUID;
        }

        public int getChannelType() {
            return channelType;
        }

        public void setChannelType(int channelType) {
            this.channelType = channelType;
        }

        public int getConnected() {
            return connected;
        }

        public void setConnected(int connected) {
            this.connected = connected;
        }

        public String getThirdPartyCid() {
            return thirdPartyCid;
        }

        public void setThirdPartyCid(String thirdPartyCid) {
            this.thirdPartyCid = thirdPartyCid;
        }
    }

    public enum OS {
        LINUX(1),
        ANDROID(2),
        IOS(3),
        WINDOWS(4),
        OTHER(5),
        ;
        Integer code;

        OS(Integer code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }
}
